package rmiclient;

import java.net.MalformedURLException;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import javax.swing.JOptionPane;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Main class
 * @author alexxxey
 */
public class BookingTicketsClient
{  
    public static void main(String []args) 
    {
        try
        {       
            String addr = args.length == 0 ? "127.0.0.1" : args[0];                                
            MainFrame app = new MainFrame(addr);                        
        }
        catch (RemoteException | NotBoundException | MalformedURLException e)
        {
            JOptionPane.showMessageDialog(null,
                    "Ошибка обращения к серверу! Завершение программы...",
                    "Error",
                    JOptionPane.ERROR_MESSAGE);
        }                
    }
}
